package com.company.woye.tailorcheck;

import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import androidx.drawerlayout.widget.DrawerLayout;

import com.company.woye.R;
import com.company.woye.base.BaseActivity;
import com.company.woye.tailorcheck.adapter.ClothPieceLvAdapter;
import com.company.woye.tailorcheck.adapter.TaiorPartAdapter;

import butterknife.BindView;
import butterknife.OnClick;

//裁剪检查
public class TailorCheckActivity extends BaseActivity {

    @BindView(R.id.iv_inventory_back)
    ImageView ivInventoryBack;
    @BindView(R.id.tv_inventory_back)
    TextView tvInventoryBack;
    @BindView(R.id.tv_inventory_search)
    TextView tvInventorySearch;
    @BindView(R.id.tv_current_code)
    EditText tvCurrentCode;
    @BindView(R.id.tv_scan_code)
    TextView tvScanCode;
    @BindView(R.id.tv_DBH)
    TextView tvDBH;
    @BindView(R.id.tv_piece)
    TextView tvPiece;
    @BindView(R.id.tv_order)
    TextView tvOrder;
    @BindView(R.id.tv_huohao)
    TextView tvHuohao;
    @BindView(R.id.tv_po)
    TextView tvPo;
    @BindView(R.id.tv_style)
    TextView tvStyle;
    @BindView(R.id.tv_sc)
    TextView tvSc;
    @BindView(R.id.tv_sh)
    TextView tvSh;
    @BindView(R.id.tv_box_num)
    TextView tvBoxNum;
    @BindView(R.id.lv_part)
    ListView lvPart;
    @BindView(R.id.tv1)
    TextView tv1;
    @BindView(R.id.tv_result)
    TextView tvResult;
    @BindView(R.id.tv_cancle)
    TextView tvCancle;
    @BindView(R.id.tv_sure)
    TextView tvSure;
    @BindView(R.id.ll_bottom)
    RelativeLayout llBottom;
    @BindView(R.id.tv_PartName)
    TextView tvPartName;
    @BindView(R.id.tv_ScaleAdd)
    TextView tvScaleAdd;
    @BindView(R.id.tv_grid_arrangeNum)
    TextView tvGridArrangeNum;
    @BindView(R.id.tv_compare_v)
    TextView tvCompareV;
    @BindView(R.id.tv_lv_piece)
    TextView tvLvPiece;
    @BindView(R.id.mylistitem)
    LinearLayout mylistitem;
    @BindView(R.id.lv)
    ListView lv;
    @BindView(R.id.dl)
    DrawerLayout dl;
    @BindView(R.id.tv_size_check)
    TextView tvSizeCheck;
    @BindView(R.id.tv_question_check)
    TextView tvQuestionCheck;
    @BindView(R.id.v1)
    View v1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public int setLayoutId() {
        return R.layout.activity_tailor_check;
    }

    @Override
    public void initView() {

        lvPart.setAdapter(new TaiorPartAdapter(this, null));

        lv.setAdapter(new ClothPieceLvAdapter(null, this));

    }

    @OnClick({R.id.tv_question_check, R.id.tv_size_check, R.id.iv_inventory_back, R.id.tv_cancle, R.id.tv_sure})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_inventory_back:
                finish();
                break;
            //取消
            case R.id.tv_cancle:
                break;
            //确认
            case R.id.tv_sure:
                break;
            //验片尺寸
            case R.id.tv_size_check:
//                dl.closeDrawer(Gravity.RIGHT);
                break;
            //验片瑕疵
            case R.id.tv_question_check:
//                dl.openDrawer(Gravity.RIGHT);
                break;
        }
    }
}
